package com.situ.student.dao;

import java.util.List;
import java.util.Map;

import com.situ.student.entity.Student;
import com.situ.student.entity.StudentSearchCondition;


public interface IStudentDao {
	int getTotalCount = 0;
	public abstract int insert(Student student);
	//返回所有学生集合
	public abstract List<Student> list(); // findAll()
	//根据id删除
	public abstract int deleteById(Integer id);
	//根据名字查找
	public abstract List<Student> findByName(String name);// findByName
	//更新前展示
	public abstract Student findById(Integer id);
	//更新
	public abstract int update(Student student);
	//返回多少条记录
	public abstract List<Map<String, Object>> pageList(int offset, int pageSize);//pageList返回带班级信息的
	//原先拿到总记录数
	public abstract int getTotalCount();
	//批量删除
	public abstract int deleteAll(String[] selectIds);
	//ajax使添加学生姓名不重复
	public abstract int selectCountByName(String name);
	//原先班级列表
	List<Student> pageList1(int offset, int pageSize);
	//搜索拿到总记录数
	public abstract int getTotalCount(StudentSearchCondition searchCondition);
	//搜索拿到当前页的数据
	public abstract List<Map<String, Object>> pageList(StudentSearchCondition searchCondition);
}
